/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.dao;

import java.util.List;

import com.sasis.dao.Dao;
import com.sasis.model.Hotel;

public interface HotelDao extends Dao {

    /**
     * Retrieves all of the hotels
     */
    public List getHotels(Hotel hotel);

    /**
     * Gets hotel's information based on primary key. An
     * ObjectRetrievalFailureException Runtime Exception is thrown if 
     * nothing is found.
     * 
     * @param id the hotel's id
     * @return hotel populated hotel object
     */
    public Hotel getHotel(final Integer id);

    /**
     * Saves a hotel's information
     * @param hotel the object to be saved
     */    
    public void saveHotel(Hotel hotel);

    /**
     * Removes a hotel from the database by id
     * @param id the hotel's id
     */
    public void removeHotel(Hotel hotel);
}

